package com.atguigu.gmall.demo.customer.service.impl;

import com.atguigu.gmall.demo.customer.bean.Customer;
import com.atguigu.gmall.demo.customer.service.CustomerService;
import org.springframework.stereotype.Service;

/**
 * @deprecated:
 * @author: tiancy
 * @create: 2021/11/2
 */

@Service // 声明具体的服务,将此服务的对象交给spring来帮我们创建.
public class CustomerImpl implements CustomerService {

    @Override
    public Customer getCustomerById(Integer id) {

        // 这里需要通过调用dao层(mapper层)查询数据库,获取用户信息.将信息包装成一个Customer对象,返回给调用的controller


        return new Customer(1001, "Ashe11111", 23111);
    }
}
